package com.idormy.sms.forwarder.Handers;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;

import com.idormy.sms.forwarder.utils.LogUtil;

public class WebHander extends Handler {
    static String TAG = "WebHander";

    private long logKey;
    public WebHander(long logKey) {
        this.logKey = logKey;
    }

    @Override
    public void handleMessage(Message msg) {
        //todo 进行结果处理，更新短信转发列表状态
        boolean flag = false;
        if(msg != null && msg.getData() != null){
            Bundle bundle = msg.getData();
            flag = bundle.getBoolean("state", false);
        }
        LogUtil.updLogState(logKey, flag);
    }
}
